home *** CD-ROM | disk | FTP | other *** search
- REM $INCLUDE: 'fastgraf.bi'
-
- DEFINT A-Z
-
- REM initialize the video environment
-
- IF FGtestmode(13,1) = 0 THEN
- PRINT "This program requires EGA."
- STOP
- END IF
- OldMode = FGgetmode
- FGsetmode 13
- FGsetfunc 3
-
- REM draw some type of background
-
- FGsetcolor 15
- FGrect 0, 319, 0, 199
-
- REM move the object across the screen
-
- FGsetcolor (10 XOR 15)
- FOR X = -20 TO 315 STEP 5
- FGclprect X, X+19, 95, 104
- FGwaitfor 1
- FGclprect X, X+19, 95, 104
- NEXT
-
- REM restore the original video mode and return to DOS
-
- FGsetmode OldMode
- FGreset
-
- END